package com.my12306.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my12306.user.model.po.PraiseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:苏牧夕
 * @Date:2020/6/22 14:55
 * @Version 1.0
 */
@Mapper
public interface PraiseDao extends BaseMapper<PraiseEntity> {
    /**
     * 根据valueId和用户id查询点赞情况
     *
     * @param valueId
     * @param userId
     * @param praiseType
     * @param logicDelete
     * @return
     */
    Long queryPraiseCommentByValueIdAndUserId(@Param("valueId") Long valueId, @Param("userId") Long userId, @Param("praiseType") Integer praiseType, @Param("logicDelete") Integer logicDelete);
}
